package edu.sctu.zhangwang.month201506.day20150601;

import java.util.Random;

/**
 * Created by Administrator on 2015/6/2 0002.
 */
public class Accident {

    public int  forecast() {
        Random random = new Random();
        int num = random.nextInt(40);
        return num;
    }
    public void forecast1(){
        if (forecast()<5){
            System.out.println("地铁出事故，疏散人群；");
        }else{
            System.out.println("安全行驶；");
        }
    }

//    public static void main(String[] args) {
//        System.out.println(new Accident().forecast());
//    }

}

